<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
      {template pub}
</head>

<body>

<div class="container">
{template header}
 <div class="clear"></div>

<div class="srch">
	<span>线上一手房源共计<b>30000套</b></span>
</div>
<div class="clear"></div>

	<?php
	//自定义URL函数,网站上线后请将函数放在自定义函数库文件中,就可以随便更改url规则
	function list_url($param, $name=NULL, $value=NULL) {
	 	unset($param['page']);
		if (!is_null($name) && !is_null($value)) {
			$param[$name] = $value;
		} elseif (!is_null($name) && is_null($value)) {
			unset($param[$name]);
		}
		/*这是伪静态url地址
		$url  = SITE_PATH;
		$url .= 'area-' . $param['area'];
		$url .= '-room-' . $param['room'];
		$url .= '-price-' . $param['price'];
		if ($name=='page')$url .= '-page-' . $value;
		*/
		$url  = url('content/list', $param);//动态地址
		return $url;
	}
	?>


<div class="filter" style="margin-top:10px;">
			<ul>
				<li class="filterTarget">区&nbsp;域：</li>
					<li {if empty($param['area'])}class="linkOn" {/if} ><a href="{list_url($param, 'area', '')}">不限</a></li>

					{php $list = linkagelist(1, $param['area']);}<!--调用联动菜单id为1（地区）的列表数据-->
					{loop $list $t}
					<li {if $param['area']==$t['id']}class="linkOn"{/if}><a href="{list_url($param, 'area', $t['id'])}" >{$t['name']}</a></li>
					{/loop}
			</ul>


			<ul>
				<li class="filterTarget">户&nbsp;型：</li>
				<li  {if empty($param['room'])} class="linkOn"  {/if}><a href="{list_url($param, 'room', '')}">不限</a></li>
				{php $bedroom_rang = array('一室'=>'1','两室'=>'2','三室'=>'3','四室以上'=>'4_100');}<!--手动控制厅室循环-->
				{loop $bedroom_rang $k=>$t}
					<li {if $param['room']==$t} class="linkOn"  {/if} ><a href="{list_url($param, 'room', $t)}">{$k}</a></li>
				{/loop}
			</ul>

			<ul>
				<li class="filterTarget">面&nbsp;积：</li>
						<li  {if empty($param['mianji'])}class="linkOn" {/if} ><a href="{list_url($param, 'mianji', '')}">不限</a></li>
						{php $area_rang = array('50㎡以下'=>'0_50','50-70㎡'=>'50_70','70-90㎡'=>'70_90','90-110㎡'=>'90_110',
						'110-130㎡'=>'110_130',
						'130-150㎡'=>'130_150','150-200㎡'=>'150_200','200-300㎡'=>'200_300','300㎡以上'=>'300_9999',);}<!--手动控制价格循环-->
						{loop $area_rang $k=>$t}
						<li {if $param['mianji']==$t}class="linkOn"{/if} ><a href="{list_url($param, 'mianji', $t)}" >{$k}</a></li>
						{/loop}
			</ul>

			<ul>
				<li class="filterTarget">价&nbsp;格：</li>
					<li {if empty($param['price'])}class="linkOn" {/if}><a href="{list_url($param, 'price', '')}">不限</a></li>
				{php $price_rang = array('30万以下'=>'0_30','30-50万'=>'30_50','50-100万'=>'50_100','100-150万'=>'100_150','150-200万'=>'150_200',
				'200-250万'=>'200_250','250-300万'=>'250_300','300-500万'=>'300_500','500万以上'=>'500_9999',);}<!--手动控制价格循环-->
					{loop $price_rang $k=>$t}
					<li {if $param['price']==$t}class="linkOn"{/if}><a href="{list_url($param, 'price', $t)}" >{$k}</a></li>
					{/loop}
				</ul>


			<ul>
				<li class="filterTarget">单&nbsp;价：</li>
					<li {if empty($param['danjia'])}class="linkOn" {/if}><a href="{list_url($param, 'danjia', '')}">不限</a></li>
				{php $danjia = array('4000元以下'=>'0_4000','4000-5000元'=>'4000_5000','5000-6000元'=>'5000_6000','6000-7000元'=>'6000_7000',
				'7000-8000元'=>'7000_8000',
				'8000-9000元'=>'8000_9000',
				'9000元以上'=>'9000_99999');}<!--手动控制价格循环-->
				{loop $danjia $k=>$t}
				<li  {if $param['danjia']==$t}class="linkOn"{/if} ><a href="{list_url($param, 'danjia', $t)}">{$k}</a></li>
				{/loop}

				</ul>



			<ul>
				<li class="filterTarget">筛选：</li>
				<li class="">
				<select name="fangchanleixing" > <option value="">房产类别</option>  
					{list action=field modelid=7 name=fangchanleixing return=item}						 
					{loop $item['data'] $n=>$v}
						<option value="{$v}"> {$n} </option>
					{/loop}
					{/list} 
				</select>   </li>
				<li class=""> <select name="jianwuleixing" > <option value="">建物型态</option> 
					{list action=field modelid=7 name=jianwuleixing return=item}						 
					{loop $item['data'] $n=>$v}
						<option value="{$v}"> {$n} </option>
					{/loop}
					{/list} 

				</select>   </li>
				<li class=""> <select name="select" > <option value="">楼盘名称</option>

				</select>   </li>
				<li class=""> <select name="select" > <option value="">学区</option> </select>   </li>
				<li class=""> <select name="select" > <option value="">生活机能</option> </select>   </li>
				<li class=""> <select name="select" > <option value="">楼层</option> </select>   </li>
				<li class=""> <select name="select" > <option value="">朝向</option> </select>   </li>
				<li class=""> <select name="select" > <option value="">车位</option> </select>   </li>
				<li class=""> <select name="select" > <option value="">交房</option> </select>   </li>
				<li class=""> <select name="select" > <option value="">特价房</option> </select>   </li>
			</ul>
			<div style=" clear:both;"></div>

 </div>

<div class="clear"></div>

		<div class="yiadvfra">
		 <ul class="yiadvul">
					<li>
<!-- 广告:一手房 开始-->
<script language="javascript" src="/index.php?s=adsense&a=get&id=1"></script>
<!-- 广告:一手房 结束-->
					</li>

					<li>
<!-- 广告:一手房右侧 开始-->
<script language="javascript" src="/index.php?s=adsense&a=get&siteid=1&id=2"></script>
<!-- 广告:一手房右侧 结束-->
					</li>
		 </ul>
		</div>
<div class="clear"></div>


<div class="sale_left">

 <ul class="sale_list">



{php $data = linkagedata(1, $param['area']);$quyu=$data['arrchilds'] ? @implode(',',$data['arrchilds']) : $data['id'];}
<!--url分页规则-->
{php $rule = list_url($param, 'page', '[page]');}
{list catid=$catid INquyu=$quyu BWzongjia=$param[price]   BWmianji=$param[mianji] shi=$param[room] page=$page pagesize=$pagesize urlrule=$rule order=updatetime more=1}


		<li class="item">
				<div class="sale_cont" >
						<div class="sale_right_info">
							<span class="title" ><a href="{$t['url']}" target="_blank">{$t['title']}</a></span>

									<ul class="sale_more_info">

		<li><span class="title2">东昌府区 &gt &gt  度假区 &nbsp;小区：{$t['xiaoqu']}&nbsp; </li>
		<li><span class="title2"> 户型：</span>{$t['shi']}室，{$t['ting']}厅，{$t['wei']}卫 &nbsp; <span class="title2">面积：</span>{$t['mianji']}㎡</span></li>
		<li><span class="title2">朝向：</span> 
			{list action=field modelid=7 name=chaoxiang return=item}						 
			{loop $item['data'] $n=>$v}
			<?php if($t['chaoxiang']==$v) echo $n;?>
			{/loop}
			{/list}  &nbsp;<span class="title2">楼层：</span>第{$t['louceng']}层/共{$t['zongceng']}层</li>
		<li><span class="title2">交房条件：</span>

			{list action=field modelid=7 name=jiaofang return=item}						 
			{loop $item['data'] $n=>$v}
			<?php if($t['jiaofang']==$v) echo $n;?>
			{/loop}
			{/list} &nbsp;
		<span class="title2">物业地址：</span>{$t['dizhi']} </li>
		<li><span class="title2">原价：</span>{$t['zongjia']}万&nbsp;<span class="title2">会员价：</span>{$t['huiyuanjia']} 万</li>
		<li><span class="title2">单价：</span>{$t['danjia']}元/平方</li>


									</ul>
						</div>
						<div class="sale_left_info" >
							<span class="sale_status_zs"></span>
							<a href="{$t['url']}" target="_blank" class="link_img">
								<img src="{thumb($t['thumb'])}" alt="">
							</a>
						</div>

				</div>
		</li>

{/list}
 

	 </ul>


<div class="clear"></div>
		<div class="pager_box">{$pagelist}</div>

</div>







</div>

<div class="clear"></div>

{template footer}
</body>
</html>